perform api testing with apikey